package com.example.learn.mapper;

import com.example.learn.pojo.FrontKnow;
import com.example.learn.pojo.Plans;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper //这个注解表示这是一个mybatis的mapper类
@Repository // 分层：dao
public interface PlanMapper {

    List<Plans> getPlanList();

    @Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")
    public int addPlan(Plans plan);

    int delPlanById(String id);

    int setPlanById(String id);
}